spacy print word in vocab

37

import spacy

# load your spaCy model here
nlp = spacy.load("en_core_web_sm") 

words = set(nlp.vocab.strings) 

for word in words:
  print(word)

Comments

Submit
0 Comments